package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.example.enums.SexEnum;
import lombok.*;

/**
 *
 */
//get/set 有参无参 @Data=get+set@| Setter+@Getter
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

     //我们使用的是数据库自增
     @TableId(value="uid",type= IdType.AUTO)
     private Long id;

     @TableField("user_name")
     private String name;

     private Integer age;

     private String email;

     @TableLogic
     private int isDelect;

     private SexEnum sex;

}
